<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
		 <script src="https://unpkg.com/pikaday@1.7.0"></script>
	</head>
	<body>
		<div id="app">
			<input ref="dateInput" v-model="date" type="date" />
		</div>	
		<script type="text/javascript">
			new Vue({
				el:'#app',
				data:{
					date:null
				},
				mounted:function(){
					var picker=new Pikaday(
					{
						field:this.$refs.dateInput,
						format:'yyyy-MM-dd'
					})
					this.$once("hook:beforeDestroy",function(){
						picker.destroy();
					})
				}
			})
		
		</script>	
		<style type="text/css">
		</style>
	</body>
</html>
